<!doctype html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <link rel="icon" type="image/svg+xml" href="./src/assets/logoZ.png" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover" />
  <meta name="facebook-domain-verification" content="868t50qg4ppmjw3jacvnrg68c2x1oj" />
  <meta name="theme-color" content="#ffffff">
  <title>歪歪兔</title>
</head>

<style>
  * {
    margin: 0 auto;
    padding: 0;
  }
</style>

<body>
  <script>
    //安装pwa到桌面
    function loadManifest(manifestUrl) {
      const link = document.createElement('link');
      link.rel = 'manifest';
      link.href = manifestUrl;
      document.head.appendChild(link);
    }

    const lang = localStorage.getItem('lang');
    if (!window.matchMedia('(display-mode: standalone)').matches) {
        // console.log('当前不在 PWA 中运行');
        if(lang == 'en'){
          loadManifest('./manifest_en.json');
        }else{
          loadManifest('./manifest.json');
        }
    }
  </script>
  <div id="app"></div>
  <script type="module" src="/src/main.js"></script>
</body>

</html>